home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlib43
/
mntlib
/
mknod.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-11
|
318b
|
21 lines
/* fake mknod -- this always fails */
#include <errno.h>
#include <support.h>
#include <stat.h>
int
mknod(path, mode, dev)
char *path;
int mode, dev;
{
if (S_ISDIR(mode)) {
return (mkdir(path, (mode_t) mode));
}
if (S_ISFIFO(mode)) {
return (mkfifo(path, (mode_t) mode));
}
errno = EINVAL;
return -1;
}